<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">文件归档</h4>
        </div>
        <div class="modal-body">
            {if condition="$data['interfile_status'] eq 1"}<form class="modalForm form-horizontal" action=" {:url('index/File/auditFile')}" method="post">{/if}
                {if condition="$data['interfile_status'] eq 2"}<form class="modalForm form-horizontal" action=" {:url('index/File/secondsh')}" method="post">{/if}
                <input type="hidden" name="id" value="{$data.interfile_id}">
                <input type="hidden" name="fq" class="fq" value="0">
                <input type="hidden" name="dh" class="dh" value="0">

                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">待归档文件</label>
                        <div class="col-md-9">
                            <input type="text" readonly class="form-control guidf" value="{$data.arc_name}.{$data.arc_type}" placeholder="请输入文件夹名称">
                            <input type="hidden" name="arc_id" value="{$data.arc_id}" class="arc_id">
                            <span class="help-block">选择待归档的文件</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">归档到</label>
                        <div class="col-md-9">
                            <input type="text" readonly class="form-control guidp" value="{$data.path}" placeholder="请输入归档到">
                            <input type="hidden" name="interfile_cate_id" value="{$data.interfile_cate_id}" class="interfile_cate_id">
                            <span class="help-block">选择归档到的目录</span>
                        </div>
                    </div>
                    {if condition="$data['interfile_status'] eq 2"}
                    <div class="form-group">
                        <label class="col-md-3 control-label">其他评审意见</label>
                        <div class="col-md-9">
                            <span class="help-block">{$data.update_username}</span>
                            <input type="text" readonly class="form-control guidp" value="{$data.interfile_audit_comments}">
                            
                        </div>
                    </div>
                    {/if}
                    {if condition="$data['interfile_status'] eq 3"}
                    <div class="form-group">
                        <label class="col-md-3 control-label">该文档已经归档</label>
                        <div class="col-md-9">
                            <span style="font-size: 15px;line-height: 24px;">流程历史</span>
                            <ol style="color: #BBBBBB;font-size:14px;line-height: 21px;">
                                <li>{$ndata.0.create_time}&emsp;{$ndata.0.user_name}&emsp;{$ndata.0.backup_reasons}</li>
                                <li>{$ndata.1.create_time}&emsp;{$ndata.1.user_name}&emsp;{$ndata.1.backup_reasons}&emsp;{$ndata.1.interfile_audit_comments}</li>
                                <li>{$ndata.2.create_time}&emsp;{$ndata.2.user_name}&emsp;{$ndata.2.backup_reasons}&emsp;&emsp;&emsp;{$ndata.2.interfile_audit_comments}</li>
                            </ol>
                        </div>
                    </div>
                    {else/}
                    <div class="form-group">
                        <label class="col-md-3 control-label">{if condition="$data['interfile_status'] eq 1"}评审意见{else/}审核评论{/if}</label>
                        <div class="col-md-9">
                            <textarea name="interfile_audit_comments" class="form-control"></textarea>
                        </div>
                    </div>
                    {/if}
                </div>
            </form>
        </div>
        <div class="modal-footer" style="border-top: 0;">
            {if condition="$data['interfile_status'] eq 3"}<button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            {else/}
            <button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            {if condition="$data['interfile_status'] eq 1"}<button type="button" class="btn red fqBtn">废弃</button>{else/}<button type="button" class="btn red dhBtn">打回</button>{/if}
            <button type="button" class="btn blue save">通过</button>
            {/if}
        </div>
    </div>
</div>


<script>
    dt().modalSave();
</script>